<!DOCTYPE html>
<html lang="zh" class="no-js">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PinPaper</title>
    <link rel="shortcut icon" href="/logo.png">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/default.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/component.css"/>
    <script src="__PUBLIC__/plugin/modernizr.custom.js"></script>
</head>
<body>
<div class="container">
    <header>
        <h1>PinPaper <span>给你不一样的阅读体验</span></h1>
        <nav class="">
            <a class="current-demo" href="index.html"><img style="width: 40px" src="__PUBLIC__/images/logo.png" alt=""></a>
        </nav>
    </header>

    <div class="menu-bar">

    </div>

    <!--内容主体 start-->
    <div id="grid-gallery" class="grid-gallery">

        <!--瀑布流主体 start-->
        <section class="grid-wrap">
            <ul class="grid effect-2" id="grid">
                <!-- for Masonry column width -->
                <!--<li>-->
                    <!--<figure>-->
                        <!--<img src="__PUBLIC__/images/thumb/1.png" alt="img01"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Letterpress asymmetrical</h3>-->
                            <!--<p>Chillwave hoodie ea gentrify aute sriracha consequat.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/2.png" alt="img02"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Vice velit chia</h3>-->
                            <!--<p>Laborum tattooed iPhone, Schlitz irure nulla Tonx retro 90's chia cardigan quis-->
                                <!--asymmetrical paleo. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/3.png" alt="img03"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Brunch semiotics</h3>-->
                            <!--<p>Ex disrupt cray yr, butcher pour-over magna umami kitsch before they sold out-->
                                <!--commodo.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/4.png" alt="img04"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Chillwave nihil occupy</h3>-->
                            <!--<p>In post-ironic gluten-free deserunt, PBR&amp;B non pork belly cupidatat polaroid. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/5.png" alt="img05"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Kale chips lomo biodiesel</h3>-->
                            <!--<p>Pariatur food truck street art consequat sustainable, et kogi beard qui paleo. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/6.png" alt="img06"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Exercitation occaecat</h3>-->
                            <!--<p>Street chillwave hoodie ea gentrify.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/1.png" alt="img01"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Selfies viral four</h3>-->
                            <!--<p>Raw denim duis Tonx Shoreditch labore swag artisan High Life cred, stumptown Schlitz-->
                                <!--quinoa flexitarian mollit fanny pack.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/2.png" alt="img02"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Photo booth skateboard</h3>-->
                            <!--<p>Vinyl squid ex High Life. Paleo Neutra nulla master cleanse, Helvetica et enim nesciunt-->
                                <!--esse.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/3.png" alt="img03"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Ex fashion axe</h3>-->
                            <!--<p>Qui nesciunt et, in chia cliche irure. Eu YOLO nihil mollit twee locavore, tempor keytar-->
                                <!--asymmetrical irure aute sriracha consequat.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/4.png" alt="img04"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Thundercats next level</h3>-->
                            <!--<p>Portland nulla butcher ea XOXO, consequat Bushwick Pinterest elit twee pickled direct-->
                                <!--trade vero. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/5.png" alt="img05"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Bushwick selvage synth</h3>-->
                            <!--<p>Bicycle rights flannel Shoreditch, art party laboris Bushwick sriracha authentic chambray-->
                                <!--hella umami sed distillery master cleanse.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/1.png" alt="img01"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Bottle wayfarers locavore</h3>-->
                            <!--<p>Once there was a little asparagus, he was green and lonely.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/1.png" alt="img01"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Letterpress asymmetrical</h3>-->
                            <!--<p>Chillwave hoodie ea gentrify aute sriracha consequat.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/2.png" alt="img02"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Vice velit chia</h3>-->
                            <!--<p>Laborum tattooed iPhone, Schlitz irure nulla Tonx retro 90's chia cardigan quis-->
                                <!--asymmetrical paleo. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/3.png" alt="img03"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Brunch semiotics</h3>-->
                            <!--<p>Ex disrupt cray yr, butcher pour-over magna umami kitsch before they sold out-->
                                <!--commodo.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/4.png" alt="img04"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Chillwave nihil occupy</h3>-->
                            <!--<p>In post-ironic gluten-free deserunt, PBR&amp;B non pork belly cupidatat polaroid. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/5.png" alt="img05"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Kale chips lomo biodiesel</h3>-->
                            <!--<p>Pariatur food truck street art consequat sustainable, et kogi beard qui paleo. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/6.png" alt="img06"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Exercitation occaecat</h3>-->
                            <!--<p>Street chillwave hoodie ea gentrify.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/1.png" alt="img01"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Selfies viral four</h3>-->
                            <!--<p>Raw denim duis Tonx Shoreditch labore swag artisan High Life cred, stumptown Schlitz-->
                                <!--quinoa flexitarian mollit fanny pack.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/2.png" alt="img02"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Photo booth skateboard</h3>-->
                            <!--<p>Vinyl squid ex High Life. Paleo Neutra nulla master cleanse, Helvetica et enim nesciunt-->
                                <!--esse.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/3.png" alt="img03"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Ex fashion axe</h3>-->
                            <!--<p>Qui nesciunt et, in chia cliche irure. Eu YOLO nihil mollit twee locavore, tempor keytar-->
                                <!--asymmetrical irure aute sriracha consequat.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/4.png" alt="img04"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Thundercats next level</h3>-->
                            <!--<p>Portland nulla butcher ea XOXO, consequat Bushwick Pinterest elit twee pickled direct-->
                                <!--trade vero. </p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/5.png" alt="img05"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Bushwick selvage synth</h3>-->
                            <!--<p>Bicycle rights flannel Shoreditch, art party laboris Bushwick sriracha authentic chambray-->
                                <!--hella umami sed distillery master cleanse.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<figure><img src="__PUBLIC__/images/thumb/1.png" alt="img01"/>-->
                        <!--<figcaption>-->
                            <!--<h3>Bottle wayfarers locavore</h3>-->
                            <!--<p>Once there was a little asparagus, he was green and lonely.</p>-->
                        <!--</figcaption>-->
                    <!--</figure>-->
                <!--</li>-->
            </ul>
        </section>

        <!--详情主体 start-->
        <section class="slideshow">
            <ul>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Letterpress asymmetrical</h3>
                            <p>Kale chips lomo biodiesel stumptown Godard Tumblr, mustache sriracha tattooed cray aute
                                slow-carb placeat delectus. Letterpress asymmetrical fanny pack art party est pour-over
                                skateboard anim quis, ullamco craft beer.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Vice velit chia</h3>
                            <p>Chillwave Echo Park Etsy organic Cosby sweater seitan authentic pour-over. Occupy wolf
                                selvage bespoke tattooed, cred sustainable Odd Future hashtag butcher.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/2.png" alt="img02"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Brunch semiotics</h3>
                            <p>IPhone PBR polaroid before they sold out meh you probably haven't heard of them leggings
                                tattooed tote bag, butcher paleo next level single-origin coffee photo booth.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/3.png" alt="img03"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Chillwave nihil occupy</h3>
                            <p>Vice cliche locavore mumblecore vegan wayfarers asymmetrical letterpress hoodie mustache.
                                Shabby chic lomo polaroid, scenester 8-bit Portland Pitchfork VHS tote bag.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/4.png" alt="img04"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Kale chips lomo biodiesel</h3>
                            <p>Chambray Schlitz pug YOLO, PBR Tumblr semiotics. Flexitarian YOLO ennui Blue Bottle,
                                forage dreamcatcher chillwave put a bird on it craft beer Etsy.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/5.png" alt="img05"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Exercitation occaecat</h3>
                            <p>Cosby sweater hella lomo Thundercats VHS occupy High Life. Synth pop-up readymade
                                single-origin coffee, fanny pack tousled retro. Fingerstache mlkshk ugh hashtag,
                                church-key ethnic street art pug yr.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/6.png" alt="img06"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Selfies viral four</h3>
                            <p>Ethnic readymade pug, small batch XOXO Odd Future normcore kogi food truck craft beer
                                single-origin coffee banh mi photo booth raw denim. XOXO messenger bag pug VHS. Forage
                                gluten-free polaroid, twee hoodie chillwave Helvetica.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Photo booth skateboard</h3>
                            <p>Thundercats pour-over four loko skateboard Brooklyn, Etsy sriracha leggings dreamcatcher
                                narwhal authentic 3 wolf moon synth Portland. Shabby chic photo booth Blue Bottle
                                keffiyeh, McSweeney's roof party Carles.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/2.png" alt="img02"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Ex fashion axe</h3>
                            <p>Ennui Blue Bottle shabby chic, organic butcher High Life tattooed meggings jean shorts
                                Brooklyn sartorial polaroid. Cray raw denim +1, bespoke High Life Odd Future banh mi
                                chillwave Marfa kogi disrupt paleo direct trade 90's Godard. </p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/3.png" alt="img03"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Thundercats next level</h3>
                            <p>Typewriter authentic PBR, iPhone mixtape fixie post-ironic fingerstache Pitchfork
                                artisan. Wayfarers master cleanse occupy, Tonx lo-fi swag Truffaut irony whatever Blue
                                Bottle readymade PBR gluten-free. Lomo Pinterest Banksy fap. Retro ennui you probably
                                haven't heard of them iPhone, PBR fashion axe polaroid.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/4.png" alt="img04"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Bushwick selvage synth</h3>
                            <p>Schlitz deserunt pour-over consectetur. Selfies plaid asymmetrical farm-to-table, cred
                                gastropub photo booth narwhal non roof party velit raw denim slow-carb meggings pug.
                                Tempor post-ironic seitan cliche bicycle rights. Meh viral Williamsburg, quinoa 8-bit
                                kale chips YOLO Marfa accusamus.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/5.png" alt="img05"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Bottle wayfarers locavore</h3>
                            <p>Aliqua High Life art party fixie farm-to-table. Kitsch Echo Park shabby chic, narwhal
                                fugiat Cosby sweater asymmetrical gastropub tofu. Authentic minim Pinterest Blue Bottle
                                beard, aliqua chia XOXO dolor freegan banh mi vegan fugiat.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Letterpress asymmetrical</h3>
                            <p>Pickled hoodie Pinterest 90's proident church-key chambray. Salvia incididunt slow-carb
                                ugh skateboard velit, flannel authentic hoodie lomo fixie photo booth farm-to-table.
                                Minim meggings Bushwick, semiotics Vice put a bird.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Vice velit chia</h3>
                            <p>Tattooed assumenda chambray cray officia. 90's mollit ethnic church-key ex eu pop-up
                                gentrify. Tonx raw denim eu, bitters nesciunt distillery Neutra pop-up. Drinking vinegar
                                Helvetica Truffaut tattooed.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/2.png" alt="img02"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Brunch semiotics</h3>
                            <p>Gentrify High Life adipisicing, duis slow-carb kogi Tumblr raw denim freegan Echo Park.
                                Fingerstache laboris pork belly messenger bag, you probably haven't heard of them vegan
                                twee Intelligentsia Vice Etsy pickled put a bird on it Godard roof party. Meggings small
                                batch dreamcatcher velit.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/3.png" alt="img03"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Chillwave nihil occupy</h3>
                            <p>Marfa exercitation non, beard +1 hashtag cardigan gluten-free mixtape church-key ugh eu
                                Portland leggings. Ennui farm-to-table fingerstache keytar Echo Park tattooed. Seitan
                                qui artisan, aliquip cupidatat sunt Portland wayfarers duis.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/4.png" alt="img04"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Kale chips lomo biodiesel</h3>
                            <p>Lomo church-key whatever, seitan laborum drinking vinegar lo-fi semiotics nihil meh.
                                Skateboard irure before they sold out Banksy. Narwhal High Life lomo aliqua drinking
                                vinegar. PBR&B placeat proident, craft beer forage DIY nostrud meh flexitarian keytar
                                Helvetica.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/5.png" alt="img05"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Exercitation occaecat</h3>
                            <p>Skateboard Truffaut bicycle rights seitan normcore. Culpa lo-fi ennui, Pinterest before
                                they sold out Echo Park roof party sapiente aesthetic consequat Truffaut freegan
                                voluptate. Kogi banh mi vero nihil, freegan gluten-free cliche. Forage Etsy laboris anim
                                normcore, McSweeney's ex.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/6.png" alt="img06"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Selfies viral four</h3>
                            <p>Viral roof party locavore flexitarian nihil fanny pack actually Odd Future anim commodo.
                                Sunt yr aute, enim quis plaid sartorial duis leggings lo-fi gluten-free. Tote bag
                                flexitarian pug stumptown, Cosby sweater try-hard ethnic scenester. Mumblecore +1 hoodie
                                accusamus skateboard slow-carb, Thundercats Godard placeat craft beer meh enim trust
                                fund.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Photo booth skateboard</h3>
                            <p>Culpa pour-over cray nesciunt dreamcatcher. Meggings distillery cillum raw denim
                                voluptate, single-origin coffee lo-fi ethical iPhone four loko nihil salvia. Biodiesel
                                ea Intelligentsia quis deep v, American Apparel trust fund slow-carb synth semiotics
                                quinoa Brooklyn pour-over nulla Godard.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/2.png" alt="img02"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Ex fashion axe</h3>
                            <p>Bespoke irony tousled nihil flexitarian, salvia tempor nostrud Bushwick hashtag Austin
                                ethnic disrupt. Beard Helvetica nihil, chia craft beer Wes Anderson keytar dolore. Irure
                                incididunt flexitarian photo booth cillum, YOLO deserunt Brooklyn artisan. Brunch
                                assumenda irony, Blue Bottle roof party DIY ullamco quis.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/3.png" alt="img03"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Thundercats next level</h3>
                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/4.png" alt="img04"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Bushwick selvage synth</h3>
                            <p>Ethical Truffaut tofu food truck cred cornhole. Irure umami Austin cornhole blog ethical.
                                Aliqua yr Truffaut, adipisicing hashtag Shoreditch eiusmod tempor literally vinyl.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/5.png" alt="img05"/></figure>
                </li>
                <li>
                    <figure>
                        <figcaption>
                            <h3>Bottle wayfarers locavore</h3>
                            <p>Pork belly irony Shoreditch fashion axe DIY. Portland banjo irony, squid gentrify Austin
                                fixie church-key magna. Marfa artisan Echo Park, McSweeney's banjo sunt keytar tofu.
                                Brooklyn PBR single-origin coffee disrupt polaroid ut, gluten-free XOXO plaid magna.</p>
                        </figcaption>
                        <img src="__PUBLIC__/images/large/1.png" alt="img01"/></figure>
                </li>
            </ul>
            <nav><span class="icon nav-prev"></span> <span class="icon nav-next"></span> <span
                    class="icon nav-close"></span></nav>
            <div class="info-keys icon">左右键翻页</div>
        </section>

    </div>

</div>
<script src="__PUBLIC__/plugin/jquery.min.js"></script>
<script src="__PUBLIC__/plugin/masonry.pkgd.min.js"></script>
<script src="__PUBLIC__/plugin/imagesloaded.pkgd.min.js"></script>
<script src="__PUBLIC__/plugin/classie.js"></script>
<script src="__PUBLIC__/plugin/wookmark.min.js"></script>
<script src="__PUBLIC__/plugin/cbpGridGallery.js"></script>
<script>
    (function ($) {
        //初始化插件
        var wookmark = undefined,
                page = 1,
                isLoading = false,
                apiURL = 'http://localhost:81/example-api/server.php',
                lastRequestTimestamp = 0,
                fadeInDelay = 1500,
                container = '#grid',
                $container = $(container),
                $loaderCircle = $('#loaderCircle'),
                $window = $(window),
                $document = $(document);


        //滚轮滑到底部时向服务器请求新的数据
        function onScroll(event) {
            // Only check when we're not still waiting for data.
            if (!isLoading) {
                // 滚轮距离内容底部只有100px的时候触发请求
                var closeToBottom = ($window.scrollTop() + $window.height() > $document.height() - 100);
                if (closeToBottom) {
                    // 请求间隔至少1s
                    var currentTime = new Date().getTime();
                    if (lastRequestTimestamp < currentTime - 1000) {
                        lastRequestTimestamp = currentTime;
                        loadData();
                    }
                }
            }
        }


        //刷新布局
        function applyLayout($newImages) {
            $container.append($newImages);

            imagesLoaded(container, function () {
                // Destroy the old handler
                if (wookmark === undefined) {
                    wookmark = new Wookmark(container, {
                        offset: 2, // Optional, the distance between grid items
                        itemWidth: 200,
                        flexibleWidth: '25%'
                    });
                } else {
                    wookmark.initItems();
                    wookmark.layout(true);
                }

//              设置动画 moveup
                $newImages.each(function () {
                    var $self = $(this);
                    window.setTimeout(function () {
                        $self.addClass("moveup");
                    }, Math.random() * fadeInDelay);
                });
            });
        }


        //从服务器加载数据
        function loadData() {
            isLoading = true;
            $loaderCircle.show();

            $.ajax({
                url: apiURL,
                dataType: 'jsonp', // 不同域使用jsonp方式
                data: {page: page}, // Page parameter to make sure we load new data
                success: onLoadData
            });
        }


        //处理服务器数据,更新页面布局
        function onLoadData(response) {
            isLoading = false;
            $loaderCircle.hide();

            // Increment page index for future calls.
            page++;

            // Create HTML for the images.
            var html = '',
                    data = response.data,
                    i = 0, length = data.length, image, opacity,
                    $newImages;

            for (; i < length; i++) {
                image = data[i];
                html += '<li>';
                html += '<div>';
                html += '<figure>';
                html += '<img src="' + image.preview + '" alt="'+ image.title +'">';
                html += '<figcaption>';
                html += '<h3>' + image.title + '</h3>';
                html += '<p>' + image.content +'</p>';
                html += '</figcaption></figure></div></li>';
            }

            $newImages = $(html);

            // 如果到达尾页停止请求
            if (response.message == 'No more pictures') {
                $document.off('scroll', onScroll);
            }

            // 刷新布局
            applyLayout($newImages);
        }

        //捕获滚轮事件
        $document.on('scroll', onScroll);

        //第一次从服务器加载数据
        loadData();

    })(jQuery);

    new CBPGridGallery(document.getElementById('grid-gallery'));

</script>
</body>
</html>